<?php
include('config.php');
$name = isset($_POST['name']) ? $_POST['name'] : '';
$where = "guest_name = '{$name}'";
$data = array('guest_state'=>1);
$rs = $mysql->update('guest',$where,$data);
if($rs){
	$screen_result = $mysql->selectList('guest',"guest_state=1",'guest_id desc');
	echo '<tr><th>客户</th><th>联系信息</th><th>操作</th></tr>';
	foreach ($screen_result as $k=>$v){
		echo '<tr class="dd_tr'.($k%2+3).'"><td>'.$v['guest_name'].'</td><td>'.$v['guest_tel'].'</td><td class="ontd" onclick="del_screen('.$v['guest_id'].')">删除</td></tr>';
	}
}
